<?php
use Base\AdminController;
use JetBrains\PhpStorm\NoReturn;

class DictController extends AdminController
{
    protected string $table = 'dicts';

    protected string $model = "dict";

	/**
     * 初始化
     */
    #[NoReturn] public function init(): void
    {
        $this->where[] = ['group_name','=',Request::input("table_name")];
        if (Request::input("title")) {
            $this->where[] = ['title','like', '%'.Request::input("title").'%'];
        }
		parent::init();
    }
}
